﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DutyTelGrid.aspx.cs" Inherits="FantastPlatform.Decision.UI.Setting.DutyTelGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
       var dtg = new FantastPlatform.UI.DutyTelGrid({
            renderTo: 'dtg_div',
            url: '../Service/DutyTelService.aspx?Action=Search',
            border: false,
            width: tabs.getInnerWidth() - 2,
            height: tabs.getInnerHeight() - 2,
            tbar: [{
                text: '添加',
                iconCls: 'add',
                tooltip: {
                    text: '添加值班室电话',
                    title: '添加值班室电话',
                    autoHide: true
                },
                handler: function () { dtg.onAddDutyTelGridClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的记录',
                    title: '编辑值班室电话',
                    autoHide: true
                },
                handler: function () { dtg.onEditDutyTelGridClick(); }
            }, '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的记录',
                    title: '删除值班室电话',
                    autoHide: true
                },
                handler: function () { dtg.onDeleteDutyTelGridClick(); }
            }, '-', {
                text: '查询',
                iconCls: 'search',
                tooltip: {
                    text: '按照条件查询记录',
                    title: '查询记录',
                    autoHide: true
                },
                handler: function () { dtg.onSearchDutyTelGridClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '列表刷新',
                    autoHide: true
                },
                handler: function () { dtg.onUpdataDutyTelGridClick(); }
            }]
        });
        dtg.addListener('rowdblclick', function () { dtg.onEditDutyTelGridClick(); });
        dtg.onUpdataDutyTelGridClick();      
    </script>
</head>
<body>
    <div id="dtg_div">
    </div>
</body>
</html>
